<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <body>
    <div class="page-group">
      <div class="page page-current">
        <header class="bar bar-nav fs-header-small">
          <a href="${ctx.host}/credit-coupons" class="icon icon-left pull-left"></a>
          <h1 class="title">兑换记录</h1>
        </header>
        <div class="bar bar-footer coupon-footer">
          <form action="${ctx.host}/credit-coupons/${creditCouponBatch.id}/exchange", method="POST">
            <button type="submit" class="btn btn-fill text-center color-white">兑&nbsp;&nbsp;换</button>
          </form>
        </div>
        <div class="content">
          <div class="list-block coupon-card no-margin">
            <ul>
              <li>
                <div class="item-content">
                  <div class="item-media"><img src="${cloud.prod}/${creditCouponBatch.cover}" style="width: 4.95rem;"></div>
                  <div class="item-inner">
                    <div class="item-title-row">
                      <div class="item-title">
                        <h1>${creditCouponBatch.templateName}</h1>
                        <span>剩余 ${creditCouponBatch.restAmount}张</span>
                      </div>
                      <div class="item-text">
                        <p class="grade-point no-margin"><span>${creditCouponBatch.creditValue}</span>&nbsp;积分</p>
                      </div>
                    </div>
                  </div>
                </div>
              </li>
            </ul>
          </div>
          <div class="coupon-content">
            <h4>简介：</h4>
            <p>${creditCouponBatch.description}</p>
          </div>
          
        </div>
       
      </div>
    </div>
   
    <%@ include file="/WEB-INF/include/script.jsp"%>
    <d:resource type="script" root="${ctx.resource}/build" src="js/page/credit/coupon-mall.js" />
    <script type="text/javascript">
      require(['page/credit/coupon-mall'], function(page) {
        page.init()
      })
    </script>
  </body>
</html>